/************************************************************
* author: alexander.aivars <alexander.aivars&#64;svt.se>
* $Date:2007-12-19 11:39:12 +0100 (Wed, 19 Dec 2007) $
* $Revision:196 $
* $HeadURL:svn://stoiis03.internt.svt.se/SVTiFLASH/trunk/SVTSE/Source/Classes/se/svt/events/ButtonEvent.as $
* $Id:ButtonEvent.as 196 2007-12-19 10:39:12Z alai $
************************************************************/
package se.svt.events
{
	import flash.events.Event;

	public class ButtonEvent extends Event
	{
		/**
		* The ButtonEvent.UP constant defines the value of the 
		* <code>type</code> property of the event object 
		* for a <code>ButtonEventUp</code> event.
		*
		* @eventType ButtonEventUp
		*/
		public static const UP:String	= "buttonUp";

		/**
		* The ButtonEvent.DOWN constant defines the value of the 
		* <code>type</code> property of the event object 
		* for a <code>ButtonEventDown</code> event.
		*
		* @eventType ButtonEventDown
		*/
		public static const DOWN:String	= "buttonDown";

		/**
		* The ButtonEvent.OVER constant defines the value of the 
		* <code>type</code> property of the event object 
		* for a <code>ButtonEventOver</code> event.
		*
		* @eventType ButtonEventOver
		*/
		public static const OVER:String	= "buttonOver";

		/**
		* The ButtonEvent.OUT constant defines the value of the 
		* <code>type</code> property of the event object 
		* for a <code>ButtonEventOut</code> event.
		*
		* @eventType ButtonEventOut
		*/
		public static const OUT:String	= "buttonOut";

		/**
		* The ButtonEvent.PRESS constant defines the value of the 
		* <code>type</code> property of the event object 
		* for a <code>ButtonEventPress</code> event.
		*
		* @eventType ButtonEventPress
		*/
		public static const PRESS:String = "buttonPress";

		/**
		* The ButtonEvent.DISABLED constant defines the value of the 
		* <code>type</code> property of the event object 
		* for a <code>ButtonEventDisabled</code> event.
		*
		* @eventType ButtonEventDisabled
		*/
		public static const DISABLED:String		= "disabled";

		public function ButtonEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}

		override public function toString():String {
			return formatToString("ButtonEvent", "type", "bubbles", "cancelable");
		}

		override public function clone():Event {
			return new ButtonEvent(type, bubbles, cancelable);
		}
						
	}
}